<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs">
<head>
<title>标点</title>
<meta charset="UTF-8">
<meta name="generator" content="MediaWiki 1.21.2">
<link rel="shortcut icon" href="../../../common/favicon.ico">
<link rel="stylesheet" href="../../../common/ext.css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" href="../../../common/site_modules.css">
<style>a:lang(ar),a:lang(ckb),a:lang(fa),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}#toc{display:none}.editsection{display:none}
/* cache key: mwiki1-mwiki_zh_:resourceloader:filter:minify-css:7:15cea3ec788a65b5187d4018eed543bf */</style>

<script src="../../../common/startup_scripts.js"></script>
<script>if(window.mw){
mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"c/language/punctuators","wgTitle":"c/language/punctuators","wgCurRevisionId":73247,"wgArticleId":13925,"wgIsArticle":true,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Todo with reason"],"wgBreakFrames":false,"wgPageContentLanguage":"zh","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"zh","wgMonthNames":["","1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"wgMonthNamesShort":["","1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"wgRelevantPageName":"c/language/punctuators","wgUserVariant":"zh","wgRestrictionEdit":[],"wgRestrictionMove":[]});
}</script><script>if(window.mw){
mw.loader.implement("user.options",function(){mw.user.options.set({"ccmeonemails":0,"cols":80,"date":"default","diffonly":0,"disablemail":0,"disablesuggest":0,"editfont":"default","editondblclick":0,"editsection":0,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":0,"extendwatchlist":0,"externaldiff":0,"externaleditor":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"imagesize":2,"justify":0,"math":1,"minordefault":0,"newpageshidepatrolled":0,"nocache":0,"noconvertlink":0,"norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"quickbar":5,"rcdays":7,"rclimit":50,"rememberpassword":0,"rows":25,"searchlimit":20,"showhiddencats":0,"showjumplinks":1,"shownumberswatching":1,"showtoc":0,"showtoolbar":1,"skin":"cppreference2","stubthreshold":0,"thumbsize":2,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":0,"watchdefault":0,"watchdeletion":0,
"watchlistdays":3,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"wllimit":250,"variant":"zh","language":"zh","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false,"gadget-MathJax":1,"gadget-ColiruCompiler":1});;},{},{});mw.loader.implement("user.tokens",function(){mw.user.tokens.set({"editToken":"+\\","patrolToken":false,"watchToken":false});;},{},{});
/* cache key: mwiki1-mwiki_zh_:resourceloader:filter:minify-js:7:258d7cd6aa9aa67dee25e01fb6a9e505 */
}</script>
<script>if(window.mw){
mw.loader.load(["mediawiki.page.startup","mediawiki.legacy.wikibits","mediawiki.legacy.ajax"]);
}</script>
<style type="text/css">/*<![CDATA[*/
.source-c {line-height: normal;}
.source-c li, .source-c pre {
	line-height: normal; border: 0px none white;
}
/**
 * GeSHi Dynamically Generated Stylesheet
 * --------------------------------------
 * Dynamically generated stylesheet for c
 * CSS class: source-c, CSS id: 
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 * --------------------------------------
 */
.c.source-c .de1, .c.source-c .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.c.source-c  {font-family:monospace;}
.c.source-c .imp {font-weight: bold; color: red;}
.c.source-c li, .c.source-c .li1 {font-weight: normal; vertical-align:top;}
.c.source-c .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.c.source-c .li2 {font-weight: bold; vertical-align:top;}
.c.source-c .kw1 {color: #0000dd;}
.c.source-c .kw2 {color: #0000ff;}
.c.source-c .kw3 {color: #0000dd;}
.c.source-c .kw4 {color: #0000ff;}
.c.source-c .co1 {color: #909090;}
.c.source-c .co2 {color: #339900;}
.c.source-c .coMULTI {color: #ff0000; font-style: italic;}
.c.source-c .es0 {color: #008000; font-weight: bold;}
.c.source-c .es1 {color: #008000; font-weight: bold;}
.c.source-c .es2 {color: #008000; font-weight: bold;}
.c.source-c .es3 {color: #008000; font-weight: bold;}
.c.source-c .es4 {color: #008000; font-weight: bold;}
.c.source-c .es5 {color: #008000; font-weight: bold;}
.c.source-c .br0 {color: #008000;}
.c.source-c .sy0 {color: #008000;}
.c.source-c .sy1 {color: #000080;}
.c.source-c .sy2 {color: #000040;}
.c.source-c .sy3 {color: #000040;}
.c.source-c .sy4 {color: #008080;}
.c.source-c .st0 {color: #008000;}
.c.source-c .nu0 {color: #000080;}
.c.source-c .nu6 {color:#000080;}
.c.source-c .nu8 {color:#000080;}
.c.source-c .nu12 {color:#000080;}
.c.source-c .nu16 {color:#000080;}
.c.source-c .nu17 {color:#000080;}
.c.source-c .nu18 {color:#000080;}
.c.source-c .nu19 {color:#000080;}
.c.source-c .ln-xtra, .c.source-c li.ln-xtra, .c.source-c div.ln-xtra {background-color: #ffc;}
.c.source-c span.xtra { display:block; }

/*]]>*/
</style><!--[if lt IE 7]><style type="text/css">body{behavior:url("/mwiki/skins/cppreference2/csshover.min.htc")}</style><![endif]--></head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-c_language_punctuators skin-cppreference2 action-view cpp-navbar">
        <!-- header -->
        <!-- /header -->
        <!-- content -->
<div id="cpp-content-base">
            <div id="content">
                <a id="top"></a>
                <div id="mw-js-message" style="display:none;"></div>
                                <!-- firstHeading -->
<h1 id="firstHeading" class="firstHeading">标点</h1>
                <!-- /firstHeading -->
                <!-- bodyContent -->
                <div id="bodyContent">
                                        <!-- tagline -->
                    <div id="siteSub">来自cppreference.com</div>
                    <!-- /tagline -->
                                        <!-- subtitle -->
                    <div id="contentSub"><span class="subpages">&lt; <a href="../../c.html" title="c">c</a>‎ | <a href="../language.html" title="c/language">language</a></span></div>
                    <!-- /subtitle -->
                                                            <!-- bodycontent -->
                    <div id="mw-content-text" lang="zh" dir="ltr" class="mw-content-ltr"><div class="t-navbar" style=""><div class="t-navbar-sep"> </div><div class="t-navbar-head"><a href="../../c.html" title="c"> C</a><div class="t-navbar-menu"><div><div><table class="t-nv-begin" cellpadding="0" style="line-height:1.1em">
<tr class="t-nv"><td colspan="5"> <a href="../language.html" title="c/language">语言</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../header.html" title="c/header">头文件</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../types.html" title="c/types">类型支持</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../program.html" title="c/program">程序工具</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../variadic.html" title="c/variadic">变参数函数支持</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../memory.html" title="c/memory">动态内存管理</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../error.html" title="c/error">错误处理</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../chrono.html" title="c/chrono">日期和时间工具</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../string.html" title="c/string">字符串库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../algorithm.html" title="c/algorithm">算法</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../numeric.html" title="c/numeric">数值</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../io.html" title="c/io">输入/输出支持</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../locale.html" title="c/locale">本地化支持</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../thread.html" title="c/thread">线程支持</a> <span class="t-mark-rev t-since-c11">(C11)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../atomic.html" title="c/atomic">原子操作</a> <span class="t-mark-rev t-since-c11">(C11)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../experimental.html" title="c/experimental">技术规范</a> </td></tr>
</table></div><div></div></div></div></div><div class="t-navbar-sep"> </div><div class="t-navbar-head"><a href="../language.html" title="c/language">C 语言</a></div><div class="t-navbar-sep"> </div><div class="t-navbar-head"><a href="basic_concepts.html" title="c/language/basic concepts">基本概念</a><div class="t-navbar-menu"><div><div style="display:inline-block">
<div><table class="t-nv-begin" cellpadding="0" style="line-height:1.1em">
<tr class="t-nv"><td colspan="5"> <a href="../comment.html" title="c/comment">注释</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="ascii.html" title="c/language/ascii">ASCII</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="escape.html" title="c/language/escape">转义序列</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="translation_phases.html" title="c/language/translation phases">翻译阶段</a></td></tr>
<tr class="t-nv"><td colspan="5"> <strong class="selflink">标点</strong></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="identifier.html" title="c/language/identifier">标识符</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="scope.html" title="c/language/scope">作用域</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="lifetime.html" title="c/language/lifetime">生存期</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="name_space.html" title="c/language/name space">查找与命名空间</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="type.html" title="c/language/types">类型</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="arithmetic_types.html" title="c/language/arithmetic types">算术类型</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="object.html" title="c/language/object">对象与对齐</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="main_function.html" title="c/language/main function"><code>main()</code> 函数</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="https://zh.cppreference.com/mwiki/index.php?title=c/language/as_if&amp;action=edit&amp;redlink=1" class="new" title="c/language/as if（页面不存在）">如同规则</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="behavior.html" title="c/language/behavior">未定义行为</a></td></tr>
<tr class="t-nv"><td colspan="5"> <a href="memory_model.html" title="c/language/memory model">内存模型与数据竞争</a></td></tr>
</table></div>
</div><div></div></div></div></div><div class="t-navbar-sep"> </div></div>
<table class="metadata plainlinks ambox mbox-small-left ambox-notice" style=""><tr><td class="mbox-empty-cell"></td><td class="mbox-text" style="">本节未完成<br>原因：修正链接 </td></tr></table>
<h3><span class="mw-headline" id=".7B_.7D"> <code>{</code> <code>} </code> </span></h3>
<ul><li> 在 <a href="struct.html" title="c/language/struct">struct</a> 或 <a href="union.html" title="c/language/union">union</a> 定义中划分出<span class="t-spar">结构体声明列表</span>。
</li><li> 在 <a href="enum.html" title="c/language/enum">enum</a> 定义中划分出<span class="t-spar">枚举列表</span>。
</li><li> 划分出<a href="statements.html#.E5.A4.8D.E5.90.88.E8.AF.AD.E5.8F.A5" title="c/language/statements">复合语句</a>。复合语句可以是<a href="function_definition.html" title="c/language/function definition">函数定义</a>的一部分。
</li><li> <a href="initialization.html" title="c/language/initialization">初始化</a>时，划分出初始化器列表。
</li></ul>
<h3><span class="mw-headline" id=".5B_.5D"> <code>[</code> <code>]</code> </span></h3>
<ul><li> <a href="operator_member_access.html#Subscript" title="c/language/operator member access">下标运算符</a>。
</li><li> <a href="declarations.html" title="c/language/declarations">声明</a>或<a href="type.html#Type_names" title="c/language/type" class="mw-redirect">类型标识</a>中，<a href="declarations.html#Declarators" title="c/language/declarations">数组声明符</a>的一部分。
</li><li> <a href="initialization.html" title="c/language/initialization">初始化</a>时，指派数组元素。<span class="t-mark-rev t-since-c99">(C99 起)</span>
</li><li> <a href="attributes.html" title="c/language/attributes"> 属性说明符</a>中，划分出属性。 <span class="t-mark-rev t-since-c23">(C23 起)</span>
</li></ul>
<h3><span class="mw-headline" id=".23"> <code>#</code> </span></h3>
<ul><li> <a href="../preprocessor.html" title="c/preprocessor">预处理指令</a>起始标志。
</li><li> <a href="../preprocessor/replace.html#.23_and_.23.23_operators" title="c/preprocessor/replace">字符串化的预处理操作</a>。
</li></ul>
<h3><span class="mw-headline" id=".23.23"> <code>##</code> </span></h3>
<ul><li> <a href="../preprocessor/replace.html#.23_and_.23.23_operators" title="c/preprocessor/replace">记号粘贴的预处理操作</a>。
</li></ul>
<h3><span class="mw-headline" id=".28_.29"> <code>(</code> <code>)</code> </span></h3>
<ul><li> 表达式<a href="expressions.html#Primary_expressions" title="c/language/expressions">分组</a>，改变结合顺序。
</li><li> <a href="operator_other.html#.E5.87.BD.E6.95.B0.E8.B0.83.E7.94.A8" title="c/language/operator other">函数调用运算符</a>。
</li><li> <a href="sizeof.html" title="c/language/sizeof"><code>sizeof</code></a> <span class="t-rev-inl t-since-c11"><span>或 <a href="_Alignof.html" title="c/language/ Alignof"><code>_Alignof</code></a> </span> <span><span class="t-mark-rev t-since-c11">(C11 起)</span></span></span>表达式中划分出运算对象。
</li><li> <a href="cast.html" title="c/language/cast">显式类型转换</a>中划分出类型标识。
</li><li> <a href="compound_literal.html" title="c/language/compound literal">复合字面量</a>中划分出标识。<span class="t-mark-rev t-since-c99">(C99 起)</span>
</li><li> <a href="declarations.html" title="c/language/declarations">声明</a>或<a href="type.html#Type_names" title="c/language/type" class="mw-redirect">类型标识</a>中分组，改变结合顺序。
</li><li> <a href="function_declaration.html" title="c/language/function declaration">函数声明</a>（<a href="declarations.html" title="c/language/declarations">声明</a>或<a href="type.html#Type_names" title="c/language/type" class="mw-redirect">类型标识</a>）中划分出参数列表。
</li><li> <a href="if.html" title="c/language/if"><code>if</code></a>、<a href="switch.html" title="c/language/switch"><code>switch</code></a>、<a href="while.html" title="c/language/while"><code>while</code></a>、<a href="do.html" title="c/language/do"><code>do-while</code></a> 或 <a href="for.html" title="c/language/for"><code>for</code></a> 语句中，划分出控制块。
</li><li> <a href="../preprocessor/replace.html#Function-like_macros" title="c/preprocessor/replace">仿函数宏定义</a>中，划分出宏参数。
</li><li> <code>defined</code> <span class="t-rev-inl t-since-c23"><span>或 <code>__has_c_attribute</code> </span> <span><span class="t-mark-rev t-since-c23">(C23 起)</span></span></span>预处理运算符的一部分。
</li><li> <a href="generic.html" title="c/language/generic">泛型选择表达式</a>的一部分。 <span class="t-mark-rev t-since-c11">(C11 起)</span>
</li><li> <a href="atomic.html" title="c/language/atomic"><code>_Atomic</code></a>类型说明符中,划分出类型标识。<span class="t-mark-rev t-since-c11">(C11 起)</span>
</li><li> <a href="_Static_assert.html" title="c/language/ Static assert">静态断言声明</a>中，划分出操作对象。<span class="t-mark-rev t-since-c11">(C11 起)</span>
</li><li> <a href="_Alignas.html" title="c/language/ Alignas"><code>_Alignas</code></a>说明符中，划分出操作对象。<span class="t-mark-rev t-since-c11">(C11 起)</span>
</li><li> <a href="attributes.html" title="c/language/attributes">属性</a>中, 划分出操作对象。<span class="t-mark-rev t-since-c23">(C23 起)</span>
</li></ul>
<h3><span class="mw-headline" id=".3B"> <code>;</code> </span></h3>
<ul><li> 如下语法的结束：
</li></ul>
<dl><dd><ul><li> <a href="statements.html" title="c/language/statements">语句</a> (含 for 循环的初始化子句)
</li><li> <a href="declarations.html" title="c/language/declarations">声明</a>或 <span class="t-spar">结构体声明列表</span>
</li></ul>
</dd></dl>
<ul><li> 分隔 <a href="for.html" title="c/language/for">for 循环</a>中的第二和第三子句。
</li></ul>
<h3><span class="mw-headline" id=":"> <code>:</code> </span></h3>
<ul><li> <a href="operator_other.html#.E6.9D.A1.E4.BB.B6.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator other">条件运算符</a>的一部分。
</li><li> <a href="statements.html#Labels" title="c/language/statements">标签声明</a>的一部分。
</li><li> 标志<a href="bit_field.html" title="c/language/bit field">位域成员声明</a>的 <span class="t-spar">宽度</span> 的起始。
</li><li> <a href="generic.html" title="c/language/generic">泛型关联</a>中，分隔类型标识或 <span class="t-c"><span class="mw-geshi c source-c"><span class="kw1">default</span></span></span> 和待选表达式。<span class="t-mark-rev t-since-c11">(C11 起)</span>
</li></ul>
<h3><span class="mw-headline" id="..."> <code>...</code> </span></h3>
<ul><li> 函数声明的<a href="function_declaration.html#Parameter_list" title="c/language/function declaration">参数列表</a>中, 标志<a href="variadic.html" title="c/language/variadic">变长参数</a>。
</li><li> <a href="../preprocessor/replace.html" title="c/preprocessor/replace">宏定义</a>中, 标志变参数宏。 <span class="t-mark-rev t-since-c99">(C99 起)</span>
</li></ul>
<h3><span class="mw-headline" id=".3F"> <code>?</code> </span></h3>
<ul><li> <a href="operator_other.html#.E6.9D.A1.E4.BB.B6.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator other">条件运算符</a>的一部分。
</li></ul>
<h3><span class="mw-headline" id="::"> <code>::</code> </span></h3>
<ul><li> 在<a href="attributes.html" title="c/language/attributes">属性</a>中指示属性作用域。<span class="t-mark-rev t-since-c23">(C23 起)</span>
</li></ul>
<h3><span class="mw-headline" id="."> <code>.</code> </span></h3>
<ul><li> <a href="operator_member_access.html#.E6.88.90.E5.91.98.E8.AE.BF.E9.97.AE" title="c/language/operator member access">成员访问运算符</a>。
</li><li> 在<a href="initialization.html" title="c/language/initialization">初始化</a>时， 标志 <a href="struct.html" title="c/language/struct">struct</a>/<a href="union.html" title="c/language/union">union</a> 成员指派符的起始 <span class="t-mark-rev t-since-c99">(C99 起)</span>
</li></ul>
<h3><span class="mw-headline" id="-.3E"> <code>-&gt;</code> </span></h3>
<ul><li> <a href="operator_member_access.html#Member_access_through_pointer" title="c/language/operator member access">成员访问运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".7E"> <code>~</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#.E9.80.90.E4.BD.8D.E9.80.BB.E8.BE.91" title="c/language/operator arithmetic">一元补运算符（又称逐位非运算符）</a>。
</li></ul>
<h3><span class="mw-headline" id=".21"> <code>!</code> </span></h3>
<ul><li> <a href="operator_logical.html#.E9.80.BB.E8.BE.91.E9.9D.9E" title="c/language/operator logical">逻辑非运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".2B"> <code>+</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#.E4.B8.80.E5.85.83.E7.AE.97.E6.9C.AF" title="c/language/operator arithmetic">正号</a>。
</li><li> <a href="operator_arithmetic.html#Additive_operators" title="c/language/operator arithmetic">加法运算符</a>。
</li></ul>
<h3><span class="mw-headline" id="-"> <code>-</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#.E4.B8.80.E5.85.83.E7.AE.97.E6.9C.AF" title="c/language/operator arithmetic">负号</a>。
</li><li> <a href="operator_arithmetic.html#Additive_operators" title="c/language/operator arithmetic">减法运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".2A"> <code>*</code> </span></h3>
<ul><li> <a href="operator_member_access.html#.E8.A7.A3.E5.BC.95.E7.94.A8" title="c/language/operator member access">间接引用运算符（也称解引用运算符）</a>。
</li><li> <a href="operator_arithmetic.html#Multiplicative_operators" title="c/language/operator arithmetic">乘法运算符</a>。
</li><li> <a href="declarations.html#Declarators" title="c/language/declarations">声明符</a>或<a href="type.html#Type_names" title="c/language/type" class="mw-redirect">类型标识</a>中的指针运算符或成员指针运算符。
</li><li> 在<a href="function_declaration.html" title="c/language/function declaration">函数声明</a>的变长数组声明中的数组长度占位符。 <span class="t-mark-rev t-since-c99">(C99 起)</span>
</li></ul>
<h3><span class="mw-headline" id=".2F"> <code>/</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#Multiplicative_operators" title="c/language/operator arithmetic">除法运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".25"> <code>%</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#Multiplicative_operators" title="c/language/operator arithmetic">取余运算符（取模运算符）</a>。
</li></ul>
<h3><span class="mw-headline" id=".5E"> <code>^</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#.E9.80.90.E4.BD.8D.E9.80.BB.E8.BE.91" title="c/language/operator arithmetic">逐位异或运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".26"> <code>&amp;</code> </span></h3>
<ul><li> <a href="operator_member_access.html#Address_of" title="c/language/operator member access">取地址运算符</a>。
</li><li> <a href="operator_arithmetic.html#.E9.80.90.E4.BD.8D.E9.80.BB.E8.BE.91" title="c/language/operator arithmetic">逐位与运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".7C"> <code>|</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#.E9.80.90.E4.BD.8D.E9.80.BB.E8.BE.91" title="c/language/operator arithmetic">逐位或运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3D"> <code>=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E7.AE.80.E5.8D.95.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">简单赋值运算符</a>。
</li><li> 在<a href="initialization.html" title="c/language/initialization">初始化</a>中，分隔对象和初始化列表。
</li><li> 在<a href="enum.html" title="c/language/enum">枚举定义</a>中引入枚举常量的值。
</li></ul>
<h3><span class="mw-headline" id=".2B.3D"> <code>+=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id="-.3D"> <code>-=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".2A.3D"> <code>*=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".2F.3D"> <code>/=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".25.3D"> <code>%=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".5E.3D"> <code>^=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".26.3D"> <code>&amp;=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".7C.3D"> <code>|=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3D.3D"> <code>==</code> </span></h3>
<ul><li> <a href="operator_comparison.html#.E7.9B.B8.E7.AD.89.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator comparison">等于运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".21.3D"> <code>!=</code> </span></h3>
<ul><li> <a href="operator_comparison.html#.E7.9B.B8.E7.AD.89.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator comparison">不等于运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3C"> <code>&lt;</code> </span></h3>
<ul><li> <a href="operator_comparison.html#.E5.85.B3.E7.B3.BB.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator comparison">小于运算符</a>。
</li><li> <a href="../preprocessor/include.html" title="c/preprocessor/include"><span class="t-c"><span class="mw-geshi c source-c"><span class="co2">#include</span></span></span>指令</a>中标志头文件名起始。
</li></ul>
<h3><span class="mw-headline" id=".3E"> <code>&gt;</code> </span></h3>
<ul><li> <a href="operator_comparison.html#.E5.85.B3.E7.B3.BB.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator comparison">大于运算符</a>。
</li><li> <a href="../preprocessor/include.html" title="c/preprocessor/include"><span class="t-c"><span class="mw-geshi c source-c"><span class="co2">#include</span></span></span>指令</a>中标志头文件名结束。
</li></ul>
<h3><span class="mw-headline" id=".3C.3D"> <code>&lt;=</code> </span></h3>
<ul><li> <a href="operator_comparison.html#.E5.85.B3.E7.B3.BB.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator comparison">小于等于运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3E.3D"> <code>&gt;=</code> </span></h3>
<ul><li> <a href="operator_comparison.html#.E5.85.B3.E7.B3.BB.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator comparison">大于等于运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".26.26"> <code>&amp;&amp;</code> </span></h3>
<ul><li> <a href="operator_logical.html#.E9.80.BB.E8.BE.91.E4.B8.8E" title="c/language/operator logical">逻辑与运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".7C.7C"> <code>||</code> </span></h3>
<ul><li> <a href="operator_logical.html#.E9.80.BB.E8.BE.91.E6.88.96" title="c/language/operator logical">逻辑或运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3C.3C"> <code>&lt;&lt;</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#.E7.A7.BB.E4.BD.8D.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator arithmetic">移位运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3E.3E"> <code>&gt;&gt;</code> </span></h3>
<ul><li> <a href="operator_arithmetic.html#.E7.A7.BB.E4.BD.8D.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator arithmetic">移位运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3C.3C.3D"> <code>&lt;&lt;=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".3E.3E.3D"> <code>&gt;&gt;=</code> </span></h3>
<ul><li> <a href="operator_assignment.html#.E5.A4.8D.E5.90.88.E8.B5.8B.E5.80.BC" title="c/language/operator assignment">复合赋值运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".2B.2B"> <code>++</code> </span></h3>
<ul><li> <a href="operator_incdec.html" title="c/language/operator incdec">自增运算符</a>。
</li></ul>
<h3><span class="mw-headline" id="--"> <code>--</code> </span></h3>
<ul><li> <a href="operator_incdec.html" title="c/language/operator incdec">自减运算符</a>。
</li></ul>
<h3><span class="mw-headline" id=".2C"> <code>,</code> </span></h3>
<ul><li> <a href="operator_other.html#.E9.80.97.E5.8F.B7.E8.BF.90.E7.AE.97.E7.AC.A6" title="c/language/operator other">逗号运算符</a>。
</li><li> 以下列表的列表分隔符：
</li></ul>
<dl><dd><ul><li> <a href="declarations.html" title="c/language/declarations">声明</a>中声明符列表
</li><li> <a href="initialization.html" title="c/language/initialization">初始化</a><span class="t-rev-inl t-since-c99"><span>，包括<a href="compound_literal.html" title="c/language/compound literal">复合字面量</a></span> <span><span class="t-mark-rev t-since-c99">(C99 起)</span></span></span>中的初始化器列表
</li><li> <a href="operator_other.html#.E5.87.BD.E6.95.B0.E8.B0.83.E7.94.A8" title="c/language/operator other">函数调用</a>中实参列表
</li><li> <a href="enum.html" title="c/language/enum">枚举</a>声明中的枚举项列表
</li><li> <a href="../preprocessor/replace.html" title="c/preprocessor/replace">仿函数宏定义</a>中宏形参列表
</li><li> <a href="generic.html" title="c/language/generic">泛型选择表达式</a>中泛型关联列表<span class="t-mark-rev t-since-c11">(C11 起)</span>
</li><li> <a href="attributes.html" title="c/language/attributes">属性</a>列表<span class="t-mark-rev t-since-c23">(C23 起)</span>
</li></ul>
</dd></dl>
<ul><li> <a href="_Static_assert.html" title="c/language/ Static assert">静态断言声明</a>中分隔参数。 <span class="t-mark-rev t-since-c11">(C11 起)</span>
</li><li> <a href="generic.html" title="c/language/generic">泛型选择表达式</a>中，分隔控制表达式和泛型关联列表。 <span class="t-mark-rev t-since-c11">(C11 起)</span>
</li></ul>
<h3><span class="mw-headline" id=".E5.BC.95.E7.94.A8">引用</span></h3>
<div class="t-ref-std-17">
<ul><li> C17 标准（ISO/IEC 9899:2018）：
</li></ul>
<dl><dd><ul><li> 6.4.6 Punctuators (p: 52-53)
</li></ul>
</dd></dl>
</div>
<div class="t-ref-std-11">
<ul><li> C11 标准（ISO/IEC 9899:2011）：
</li></ul>
<dl><dd><ul><li> 6.4.6 Punctuators (p: 72-73)
</li></ul>
</dd></dl>
</div>
<div class="t-ref-std-c99">
<ul><li> C99 标准（ISO/IEC 9899:1999）：
</li></ul>
<dl><dd><ul><li> 6.4.6 Punctuators (p: 63-64)
</li></ul>
</dd></dl>
</div>
<div class="t-ref-std-c89">
<ul><li> C89/C90 标准（ISO/IEC 9899:1990）： 
</li></ul>
<dl><dd><ul><li> 3.1.6 Punctuators 
</li></ul>
</dd></dl>
</div>
<h3><span class="mw-headline" id=".E5.8F.82.E9.98.85">参阅</span></h3>
<table class="t-dsc-begin">

<tr class="t-dsc">
<td>  <a href="operator_alternative.html" title="c/language/operator alternative">替用表示</a> <span class="t-mark-rev t-since-c95">(C95)</span>
</td>
<td> 某些运算符的替用拼写</td></tr>

</table>

<!-- 
NewPP limit report
Preprocessor visited node count: 3510/1000000
Preprocessor generated node count: 10783/1000000
Post‐expand include size: 43930/2097152 bytes
Template argument size: 10750/2097152 bytes
Highest expansion depth: 17/40
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key mwiki1-mwiki_zh_:pcache:idhash:13925-0!*!0!!zh!*!zh!* and timestamp 20211217070520 -->
</div>                    <!-- /bodycontent -->
                                        <!-- printfooter -->
                    <div class="printfooter">
                    来自“<a href="https://zh.cppreference.com/mwiki/index.php?title=c/language/punctuators&amp;oldid=73247">https://zh.cppreference.com/mwiki/index.php?title=c/language/punctuators&amp;oldid=73247</a>”                    </div>
                    <!-- /printfooter -->
                                                            <!-- catlinks -->
                    <!-- /catlinks -->
                                                            <div class="visualClear"></div>
                    <!-- debughtml -->
                                        <!-- /debughtml -->
                </div>
                <!-- /bodyContent -->
            </div>
        </div>
        <!-- /content -->
        <!-- footer -->
        <div id="cpp-footer-base" class="noprint">
            <div id="footer">
                        <div id="cpp-navigation">
            <h5>导航</h5>
            <ul><li><a href="https://zh.cppreference.com/w/c/language/punctuators">Online version</a></li><li>Offline version retrieved 2022-01-01 00:37.</li></ul></div>
                        <ul id="footer-info">
                                    <li id="footer-info-lastmod"> 本页面最后修改于2021年12月16日 (星期四) 23:05。</li>
                                    <li id="footer-info-viewcount">此页面已被浏览过13次。</li>
                            </ul>
                    </div>
        </div>
        <!-- /footer -->
        <script>if(window.mw){
mw.loader.state({"site":"loading","user":"missing","user.groups":"ready"});
}</script>
<script src="../../../common/skin_scripts.js"></script>
<script>if(window.mw){
mw.loader.load(["mediawiki.action.view.postEdit","mediawiki.user","mediawiki.page.ready","mediawiki.searchSuggest","mediawiki.hidpi","ext.gadget.MathJax","ext.gadget.ColiruCompiler"], null, true);
}</script>
<script src="../../../common/site_scripts.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2828341-1']);
_gaq.push(['_setDomainName', 'cppreference.com']);
_gaq.push(['_trackPageview']);
</script><!-- Served in 0.085 secs. -->
	</body>
<!-- Cached 20211217194638 -->
</html>